package com.it.smn.divide.annotation;


import com.it.smn.divide.loadbalance.LoadBalance;
import com.it.smn.divide.registrar.DynamicDataSourceRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author Lenovo
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(DynamicDataSourceRegistrar.class)
public @interface EnableDynamicDataSource {

    LoadBalance loadBalance() default LoadBalance.RoundRobin;

}
